<style>
    table > tbody > tr > td, table > thead > tr > th {
        border: 1px solid #000000 !important;
        font-size: 16px;
    }
</style>
<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <div class="widget-head am-cf">
                    <div class="widget-title  am-cf">普查登记申请/上户表 预览/打印</div>
                </div>
                <div class="widget-body  am-fr">
                    <div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
                        <div class="am-form-group">
                            <div class="am-btn-toolbar">
                                <div class="am-btn-group am-btn-group-xs">
                                    <button type="button" class="am-btn am-btn-default am-btn-success" id="btnPrint"
                                            onclick="print()">
                                        <span class="am-icon-plus"></span> 打印
                                    </button>
                                    <button type="button" onclick="loadPage('deviceInformation/listUI')"
                                            class="am-btn am-btn-default am-btn-danger ">返回
                                    </button>
                                </div>
                                <div class="widget-body am-fr" th:each="record: ${registerLicenseList}" id="printContent">
                                    <table
                                            class="table table-bordered am-text-nowrap table-responsive text-center"
                                            style="margin-top: 60px; background-repeat:no-repeat;">
                                        <!--  <div style="position:absolute;width:1000px;height:1050px;top:70px;left:20px;z-index:1">
                                              <img src="https://www.gcjxglzx.com/images/cms-admin-background/targerTextPath/more.jpg"
                                                   style="height: 100%;width: 100%;filter:alpha(opacity=30);-moz-opacity:0.2;opacity:0.2; -khtml-opacity: 0.2;"/>
                                          </div>-->
                                        <thead>
                                        <tr style="border: 0px solid transparent !important;">
                                            <th colspan="7" class="text-center"
                                                style="border:1px solid transparent !important;">
                                                <span style="font-size: 24px;"><strong>工程机械行业信息普查登记申请表</strong></span>
                                            </th>
                                        </tr>
                                        <tr>
                                            <th colspan="7" class="text-right"
                                                style="border-top:0px solid transparent !important; border-right: 1px solid transparent !important; border-left: 1px solid transparent !important;">
                                                填表日期 <span
                                                    th:text="${record.createDate != null} ? ${#dates.format(record.createDate, 'yyyy年MM月dd日')}: ''"></span>
                                            </th>
                                        </tr>
                                        </thead>
                                        <tbody class="print-border">
                                        <tr class="">
                                            <td colspan="1">
                                                <span>设备申请人姓名</span>
                                            </td >
                                            <td colspan="2"><span
                                                    th:text="${record.registerName != null} ? ${record.registerName} : ''"></span>
                                            </td>
                                            <td colspan="1">
                                                <input type="radio"
                                                       th:checked="${record.userType != null and record.userType == '0'}"
                                                       class="radio-inline">个人</input>
                                                <input type="radio"
                                                       th:checked="${record.userType != null and record.userType == '1'}"
                                                       class="radio-inline">企业</input>
                                            </td>
                                            <td colspan="1">
                                                <span>企业联系人</span>
                                            </td>
                                            <td colspan="2"><span
                                                    th:text="${record.registerName != null} ? ${record.registerName} : ''"></span>
                                            </td>
                                        </tr>
                                        <tr class="text-center">
                                            <td colspan="1">
                                                <span>转出人联系电话</span>
                                            </td>
                                            <td colspan="2">
                                                <span th:text="${record.registerPhone != null} ? ${record.registerPhone} : ''"></span>
                                            </td>
                                            <td colspan="1">
                                                <span>身份证号/企业代码</span>
                                            </td>
                                            <td colspan="3">
                                                <span th:text="${record.identification != null} ? ${record.identification} : ''"></span>
                                            </td>
                                        </tr>
                                        <tr class="text-center">
                                            <td colspan="1">
                                                <span>有效通讯地址</span>
                                            </td>
                                            <td colspan="6">
                                                <span th:text="${record.address != null} ? ${record.address} : ''"></span>
                                            </td>
                                        </tr>
                                        <tr class="text-center" colspan="1">
                                            <td rowspan="3">
                                                <span>机械信息</span>
                                            </td>
                                            <td colspan="1">
                                                <span>品牌</span>
                                            </td>
                                            <td colspan="1">
                                                <span th:text="${record.deviecBrand != null} ? ${record.deviecBrand} : ''"></span>
                                            </td>
                                            <td colspan="1">
                                                <span>类型</span>
                                            </td>
                                            <td colspan="1">
                                                <div th:if="${record.machineryType != null}"
                                                     th:switch="${record.machineryType}">
                                                    <span th:case="1">挖掘机</span>
                                                    <span th:case="2">装载机</span>
                                                    <span th:case="3">矿用自卸车</span>
                                                    <span th:case="4">推土机</span>
                                                    <span th:case="5">压路机</span>
                                                    <span th:case="6">平地机</span>
                                                    <span th:case="7">混凝土机械</span>
                                                    <span th:case="8">桩工机械</span>
                                                    <span th:case="9">凿岩机械</span>
                                                </div>
                                            </td>
                                            <td colspan="1">
                                                <span>型号</span>
                                            </td>
                                            <td colspan="1">
                                                <span th:text="${record.plateSubject != null} ? ${record.plateSubject} : ''"></span>
                                            </td>
                                        </tr>
                                        <tr class="text-center">
                                            <td colspan="1">
                                                <span>发动机型号</span>
                                            </td>
                                            <td colspan="2">
                                                <span th:text="${record.engineSubject != null} ? ${record.engineSubject} : ''"></span>
                                            </td>
                                            <td colspan="1">
                                                <span>发动机编号</span>
                                            </td>
                                            <td colspan="2">
                                                <span th:text="${record.enginePlateNum != null} ? ${record.enginePlateNum} : ''"></span>
                                            </td>
                                        </tr>
                                        <tr class="text-center">
                                            <td colspan="1">
                                                <span>发动机功率</span>
                                            </td>
                                            <td colspan="1">
                                                <span th:text="${record.power != null} ? ${record.power} : ''"></span><span>KW</span>
                                            </td>
                                            <td colspan="1">
                                                <span>出厂日期</span>
                                            </td>
                                            <td colspan="1">
                                                <span th:if="${record.dateOfProduction != null}"
                                                      th:text="${#dates.format(record.dateOfProduction, 'yyyy年MM月dd日')}"></span>
                                            </td>
                                            <td colspan="1">
                                                <span>购买日期</span>
                                            </td>
                                            <td colspan="1">
                                                <span th:text="${record.resBuyDate != null} ? ${#dates.format(record.resBuyDate, 'yyyy年MM月dd日')} : ''"/>
                                            </td>
                                        </tr>
                                        <tr class="text-center">
                                            <td colspan="2">
                                                <input type="radio"
                                                       th:checked="${record.productionType != null and record.productionType == '0'}"
                                                       class="radio-inline">国产</input>
                                                <input type="radio"
                                                       th:checked="${record.productionType != null and record.productionType == '1'}"
                                                       class="radio-inline">合资</input>
                                                <input type="radio"
                                                       th:checked="${record.productionType != null and record.productionType == '2'}"
                                                       class="radio-inline">进口</input>
                                            </td>
                                            <td colspan="1">
                                                <span>产地</span>
                                            </td>
                                            <td colspan="1">
                                                <span th:text="${record.productionAddress != null} ? ${record.productionAddress} : ''"></span>
                                            </td>
                                            <td colspan="1">
                                                <span>行走方式</span>
                                            </td>
                                            <td colspan="2">
                                                <input type="radio"
                                                       th:checked="${record.maneuver != null and record.maneuver == '0'}"
                                                       class="radio-inline">轮式</input>
                                                <input type="radio"
                                                       th:checked="${record.maneuver != null and record.maneuver == '1'}"
                                                       class="radio-inline">履带</input>
                                            </td>
                                        </tr>
                                        <tr class="text-center">
                                            <td colspan="1">
                                                <span>燃油种类</span>
                                            </td>
                                            <td colspan="2">
                                                <input type="radio"
                                                       th:checked="${record.fuel != null and record.fuel == '0'}"
                                                       class="radio-inline">柴油</input>
                                                <input type="radio"
                                                       th:checked="${record.fuel != null and record.fuel == '1'}"
                                                       class="radio-inline">汽油</input>
                                                <input type="radio"
                                                       th:checked="${record.fuel != null and record.fuel == '2'}"
                                                       class="radio-inline">天然气</input>
                                            </td>
                                            <td colspan="1">
                                                <span>工作小时</span>
                                            </td>
                                            <td>
                                                <span th:text="${record.workTime != null} ? ${record.workTime} : ''"></span><span>H</span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="1">
                                                <span>出厂编号</span>
                                            </td>
                                            <td colspan="3">
                                                <span th:text="${record.factoryNum != null} ? ${record.factoryNum} : ''"></span>
                                            </td>
                                            <td colspan="1">
                                                <span>设备牌编号</span>
                                            </td>
                                            <td colspan="2">
                                                <span th:text="${record.plateNum != null} ? ${record.plateNum} : ''"></span>
                                            </td>
                                        </tr>
                                        <tr class="text-center" style="height: 200px;">
                                            <td colspan="3" style="padding: 0px; margin: 0px;">
                                                <span style="font-size: 18px;"><strong>人手持证件与设备合影照片</strong></span>
                                                <span style="width:250px; height:160px;">
                                                    <img th:src="'/'+${record.identityPositiveImg != null} ? ${record.identityPositiveImg} : ''"
                                                         width="250px" height="160px"/>
                                                </span>
                                            </td>
                                            <td colspan="4" style="padding: 0px; margin: 0px;">
                                                <strong><span style="font-size: 18px;">设备大架号照片</span></strong>
                                                <span style="margin: 0px; padding: 0px;">
                                                    <img th:src="${record.identityAndCarImg != null} ? ${record.identityAndCarImg} : ''"
                                                         width="250px" height="160px"/>
                                                </span>
                                            </td>
                                        </tr>
                                        <tr class="lead">
                                            <td colspan="7" style="text-align: left; font-size: 20px;">
                                                <div style="margin: 0px auto">
                                                    <p style="margin: 10px">
                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;申请人郑重承诺上述机械设备的所有购买款项已全部付清，并保证该机械设备无所有权保留，<br/>
                                                        无抵押，无查封，无其他债权债务纠纷等限制处分的情形。申请人保证该机械设备确属申请人所有，<br/>
                                                        无其他共有人。如果有虚假陈述给他人造成损害，申请人自愿承担由此产生的一切民事，行政法<br/>
                                                        律责任，如触犯刑法，应承担因此产生的刑事责任。
                                                    </p>
                                                    <p style="margin: 10px">
                                                        该普查登记申请纯属申请人自愿申请登记如有问题与本协会及普查登记单位无关。
                                                    </p>
                                                    <p style="margin: 10px">
                                                    <span>
                                                        <strong>
                                                            上述承诺内容已看清并且熟读确认签字/盖章：<span class="text-right"
                                                                                       style="margin: 0px 0px 0px 320px;">年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日</span>
                                                        </strong>
                                                    </span>
                                                    </p>
                                                </div>
                                            </td>
                                        </tr>
                                        <tr class="text-center" style="height: 100px;">
                                            <td>
                                                <span style="font-size: 18px;"><strong>普查人签字</strong></span>
                                            </td>
                                            <td></td>
                                            <td colspan="2">
                                                <strong><span style="font-size: 18px;">普查单位名称盖章</span></strong>
                                            </td>
                                            <td colspan="3"></td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" th:src="@{/ui/js/jQuery.print.js}"/>
<script type="text/javascript">
    function print() {
        $("#printContent").print({
            globalStyles: true,//是否包含父文档的样式，默认为true
            mediaPrint: false,//是否包含media='print'的链接标签。会被globalStyles选项覆盖，默认为false
            stylesheet: null,//外部样式表的URL地址，默认为null
            noPrintSelector: ".no-print",//不想打印的元素的jQuery选择器，默认为".no-print"
            append: null,//将内容添加到打印内容的后面
            prepend: null//将内容添加到打印内容的前面，可以用来作为要打印内容
            //deferred:
            //   $.Deferred()//回调函数
        });
    }
</script>